package com.his.dao.jpa;

import java.math.BigDecimal;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.his.pojos.jpa.HisRegistrationForm;

public interface MxjRegistrationFormDAO extends CrudRepository<HisRegistrationForm, Long> {
	@Query("select ghNo from HisRegistrationForm where ylkNo=:ylkNo")
	public long findByNo(@Param("ylkNo")BigDecimal ylkNo);
	
	@Query("select ksNo from HisRegistrationForm where ghNo=:ghNo")
	public BigDecimal findByNo2(@Param("ghNo")long ghNo);
}
